<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>查看/编辑影片</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		
	<style type="text/css">
		
		.icon-th{
			height: 19px;padding-top: 5px;
		}
	</style>


	</head>

	<body class="content1">
		<div class="header">
			<h1 class="page-title">
				影视管理系统
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">影视管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				查看/编辑影片(${film.filmName})
			</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">
				<div class="btn-toolbar">
					<a href="<%=basePath%>film/review/reviewList" class="btn">返回</a>
				</div>

			<div class="well">
				<c:forEach items="${pager.list}" var="item">
					<div class="tab-pane active in">	
						<label>
							 用户(${item.username})的影评:
						</label>
						<input type="text" name="rwcontenr" value="${item.rwcontent}"   readonly="readonly" >
					</div>
				</c:forEach>
				<div class="pagination pagination-right">
					<ul>
						<li><a>共计：${pager.pagectrl.pagecount}页/${pager.pagectrl.rscount}条记录</a>
						</li>

						<li><c:if test="${pager.pagectrl.currentindex==1}" var="fp">
								<a style="disabled: true">上一页</a>
							</c:if> <c:if test="${!fp}">
								<a
									href="<%=basePath%>film/film/filmlist?index=${pager.pagectrl.currentindex-1}">上一页</a>
							</c:if></li>

						<c:forEach begin="${pager.pagectrl.minpage}" step="1"
							end="${pager.pagectrl.maxpage}" var="index">
							<li><c:if test="${pager.pagectrl.currentindex==index}"
									var="t">
									<a style="color: red; background-color: #bbb">${index}</a>
								</c:if> <c:if test="${!t}">
									<a href="<%=basePath%>film/film/filmlist?index=${index}">${index}</a>
								</c:if></li>
						</c:forEach>

						<li><c:if
								test="${pager.pagectrl.currentindex==pager.pagectrl.pagecount}"
								var="fp">
								<a style="disabled: true">下一页</a>
							</c:if> <c:if test="${!fp}">
								<a
									href="<%=basePath%>film/film/filmlist?index=${pager.pagectrl.currentindex+1}">下一页</a>
							</c:if></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
